package ex3.controller.demo;

import java.util.ArrayList;
import java.util.List;

/**
 * @AUTHOR 尹书岿
 * @DATE 2024/12/11 14:09
 * @DESCRIBE
 */
public class Main {
    public static void main(String[] args) {
        childMovie childMovie = new childMovie(3, "喜羊羊");
        commonMovie commonMovie = new commonMovie(5, "泰坦尼克号");
        newMovie newMovie = new newMovie(2, "七四九局");

        List<movie> movieList = new ArrayList<>();
        movieList.add(childMovie);
        movieList.add(commonMovie);
        movieList.add(newMovie);
        double total = 0;
        int totalScore = 0;
        for (movie movie : movieList) {
            total += movie.conmputerMoney();
            totalScore += movie.computerScore();
        }
        System.out.println(total + totalScore);
    }
}
